import request from '@/utils/request'
// add
export function createAdvert(data) {
  return request({
    url: '/advertising/add',
    method: 'post',
    data
  })
}
// list

export function getAdvertlist(params) {
  return request({
    url: '/advertising/page',
    method: 'get',
    params
  })
}
// delete
export function deleteAdvert(data) {
  return request({
    url: '/advertising/delete',
    method: 'post',
    data
  })
}
//   edit
export function editAdvert(data) {
  return request({
    url: '/advertising/edit',
    method: 'post',
    data
  })
}
// detail
export function AdvertDetail(params) {
  return request({
    url: '/advertising/detail',
    method: 'get',
    params
  })
}

